Long2Fix
You can use theLong2Fix
function to convert aLongInt
number to aFixed
number.
FUNCTION Long2Fix (x: LongInt): Fixed;
x
- The long integer to be converted to a
Fixed
number.DESCRIPTION
TheLong2Fix
function returns theFixed
number equivalent to the long integer you supply in thex
parameter. Ifx
is greater than the maximum representable fixed-point number, theLong2Fix
function returns $7FFFFFFF. Ifx
is less than the negative number with the highest absolute value,Long2Fix
returns $80000000.